package com.bwie.auth.remote;

import com.bwie.common.domain.Menu;
import com.bwie.common.domain.Role;
import com.bwie.common.domain.User;
import com.bwie.common.domain.request.UserRequest;
import com.bwie.common.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @className: UserRemote
 * @Description: TODO
 * @version: v1.８.0
 * @author: 张雨乐
 */
@FeignClient(value = "bwie-system")
public interface UserRemote {
    @PostMapping("/user/userLogin")
    Result<User> userLogin(@RequestBody UserRequest userRequest);
    @PostMapping("/user/getRole")
    Result<List<Role>> getRole(@RequestBody Integer id);
}
